import csv

reader = open('xigua_2w_cluster.txt')
list_data = reader.readlines()
list = []
for i in list_data:
    list.append(i.strip().rsplit('\t',2))

with open("xigua_2w_predict.csv","w") as f:
    writer = csv.writer(f)
    writer.writerows(list)
